package model.webService;

import view.ArgusActivity;
import view.Scanner;
import view.Splash;

public class WebServiceConnector 
{
	private ClientThread client;
	public WebServiceConnector()
	{
	}
		
	public void connectToServer(ArgusActivity _activity)
	{
		client = new ClientThread(_activity);
		new Thread(client).start();
	}
	
	public void subscribeToSnippet(String snippetID)
	{
		client.subscribeToSnippet(snippetID);
	}
	
	public void unSubscribeToSnippet(String snippetID)
	{
		client.unSubscribeToSnippet(snippetID);
	}
	
	public void disconnectFromServer()
	{
		client.logOut();
	}	
	
	public void getSnippet(String id)
	{
		client.getSnippet(id);
	}

	public void handleSubscriptions(String subscribeIds, String unSubscribeIds) 
	{
		client.handleSubscriptions(subscribeIds, unSubscribeIds);
	}

	public void setActivity(ArgusActivity activity)
	{
		client.setActivity(activity);
	}
}
